package spring.board.dao;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import spring.board.vo.LoginVo;
import spring.board.vo.LookdVo;

public class LookdDaoImpl extends SqlSessionDaoSupport implements LookdDao{

	public String getToday2() {
		String today2 = (String)getSqlSession().selectOne("lookd.getToday2");
		return today2;
	}
/*
	public LookdVo getUsers() {
		LookdVo users = (LookdVo)getSqlSession().selectOne("lookd.getUsers");
				//(LookdVo)getSqlSession().selectOne("lookd.getUsers");
		return users;
	}
	*/

	public int insertLookd(Map<String, Object> paramMap) {
		return getSqlSession().insert("lookd.insertLookd", paramMap);
	}

	public List<Map<String, Object>> getUsetList(Map<String, Object> paramMap) {
		return getSqlSession().selectList("lookd.getUserList");
	}

	public List<LookdVo> getVo() {
		return getSqlSession().selectList("lookd.getVo");
	}

	public int loginTest(LoginVo loginVo) {
		return getSqlSession().insert("lookd.loginTest", loginVo);
	}
}
